'''
Created on 16/10/2011

@author: nacho
'''

from instruction import Instruction

class IOInstruction(Instruction):
    '''
    classdocs
    '''


    def __init__(self, execu, burst=0):
      
        self.burst = burst
        self.executable = execu

    def execute(self):
        
        self.burst -= 1
        self.executable()
        

    def needCPU(self):

        return False
    
    def exe(self):
        
        return self.executable
